import { Navigation } from "@/types/content/navigation";
import{ get, post, remove } from "@/utils/request";
/**
 * 查询导航
 * @returns 
 */
export const queryNavList = (params: Navigation.Query) => get<Navigation.Row[]>(`/navigation/list`, params);
/**
 * 新增编辑导航
 * @param data 
 * @returns 
 */
export const saveNav = (data: Navigation.Form) => post(`/navigation/save`, data);
/**
 * 删除导航
 * @param id 
 * @returns 
 */
export const removeNav = (id: string) => remove(`/navigation/${id}`);
export const queryNavTagList = ()=>get<string[]>(`/navigation/tag`);
